@import '../../constant.less';

.programSetting {
  position: relative;

  .cover {
    position: absolute;
    top: 0;
    bottom: 10px;
    left: 0;
    z-index: 2;
    width: 100%;
    background-color: var(--bg-mask); // 改
  }
}

.stationsAndOperate {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;

  .stations {
    display: flex;
    flex: auto;
    max-width: 320px;

    :global {
      .ant-select {
        width: 100% !important;
      }

      .ant-select-selector {
        border-radius: 5px !important;
      }
    }
  }

  .operate {
    display: flex;
    flex: none;
    margin-left: 24px;

    .acceptLimitAdjust {
      position: relative;
      display: flex;
      align-items: center;
      margin-right: 10px;

      :global {
        .ant-radio {
          top: 0.2em;
          vertical-align: baseline;
        }
      }

      .icon {
        position: absolute;
        right: -4px;
      }
    }

    .setTradeDirection {
      display: flex;
      width: 194px;
      height: 30px;
      margin-left: 16px;
      border: 1px solid var(--ant-cus-bd_default);

      .setToSell {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 97px;
        background-color: rgba(253, 77, 67, 0.1);
        cursor: pointer;

        .text {
          margin-left: 6px;
          color: #fd4f43;
          font-size: 12px;
        }
      }

      .setToBuy {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 97px;
        background-color: rgba(48, 212, 133, 0.1);
        cursor: pointer;

        .text {
          margin-left: 6px;
          color: #30d485;
          font-size: 12px;
        }
      }
    }

    .setTradePrice {
      display: flex;
      width: 194px;
      height: 30px;
      margin-left: 16px;
      border: 1px solid var(--ant-cus-bd_default);

      .setToMax {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 97px;
        background-color: rgba(253, 77, 67, 0.1);
        cursor: pointer;

        .text {
          margin-left: 6px;
          color: #fd4f43;
          font-size: 12px;
        }
      }

      .setToMin {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 97px;
        background-color: rgba(48, 212, 133, 0.1);
        cursor: pointer;

        .text {
          margin-left: 6px;
          color: #30d485;
          font-size: 12px;
        }
      }
    }

    .setPower {
      display: flex;
      align-items: center;
      height: 30px;
      margin-left: 16px;
      font-size: 12px !important;
      border: 1px solid var(--ant-cus-bd_default);

      :global {
        .ant-radio {
          position: relative;
          top: 0;
          margin-left: 12px;
        }

        .ant-select {
          font-size: 12px;
        }

        .ant-select-selector {
          padding-left: 0 !important;
        }

        .ant-radio-wrapper {
          display: inline-flex !important;
        }
      }

      .label {
        margin-right: 8px;
      }

      .value {
        width: 48px;
        height: 20px;
        margin-right: 10px;
        padding-right: 3px;
        padding-left: 3px;
        font-size: 12px;
        border-radius: 4px;

        :global {
          .ant-input-number-handler-wrap {
            display: none;
          }

          .ant-input-number-input {
            height: 20px;
            padding: 0;
            line-height: 20px;
          }
        }
      }

      .splitLine {
        width: 0;
        height: 18px;
        border-right: 1px solid var(--ant-cus-bd_default);
      }

      .btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 92px;
        height: 100%;
        color: var(--font-primary);
        background-color: var(--bd-primary-a20);
        border-left: 1px solid var(--ant-cus-bd_default);
        cursor: pointer;
      }
    }
  }
}

.tradeUnitList {
  display: flex;
  align-items: flex-start;
  margin-top: 24px;
  padding: 4px 24px 6px 16px;
  color: var(--font2);
  line-height: 24px;
  background-color: var(--ant-cus-bg2_a10);

  .tradUnitIcon {
    position: relative;
    top: 5px;
    flex: none;
  }

  .tradUnitText {
    display: inline-flex;
    flex: auto;
    height: 24px;
    margin-left: 8px;
    overflow: hidden;
    font-size: 12px;

    .label {
      margin-right: 2px;
      white-space: nowrap;
    }

    .value {
      cursor: pointer;
      img {
        width: 12px;
        margin-top: -2px;
        margin-right: 2px;
      }
    }
  }
}

.tradUnitText.show {
  height: auto;
}

.showIcon {
  position: relative;
  top: 5px;
  flex: none;
  margin-left: 26px;
  color: var(--font-primary);
  cursor: pointer;
}

.powerTypeOption {
  font-size: 12px !important;
}

// .timerPopup {
//   :global {
//     .ant-picker-panel-container {
//       background: rgba(58, 58, 58, 1);
//     }
//   }
// }
